package com.koala.exception;

import com.koala.result.Result;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CommonException {
    private Result result;

    public static CommonException create(Result result) {
        CommonException exception = new CommonException();
        exception.result = result;
        return exception;
    }
}
